#ifndef _glove_commands__h__
#define _glove_commands__h__

namespace vkbrd
{
	enum
	{
		//! reset glove and switch to stand by mode.
		eResetCommand = 0xFE,
		//! start to send 17byte glove data at 100Hz
		eStartCommand = 0xFD,
		//! order glove to give a 22byte info with producer, name and firmware
		eRequestInfo = 0xFF,
		eSetLowPassOn = 252,
		eSetLowPassOff = 251
	};

	enum
	{
		eEndByte = 0,
		eStartBit = 1 << 7,
		e5BitMask = 0x1F
	};

	//! Finger count in each glove
	const int fingerCount = 5;
	//! Gloves number
	const int numGloves = 2;
	//! Total finger count
	const int dFingerCount = numGloves * fingerCount;
	//! Glove protocol message length
	const int messageLenght = 17;
	

	typedef short int gInt;

	const gInt gloveMinValue = 0;
	const gInt gloveMaxValue = 1023;

	const gInt glovePrecision = gloveMaxValue - gloveMinValue;
}

#endif //_glove_commands__h__